A One-Time Password (OTP) is a unique code that is generated and used for a single login or transaction. OTPs are typically used in multi-factor authentication (MFA) to add an extra layer of security. Once the OTP is used, it cannot be reused, making it more secure than traditional passwords.
One-time passwords are commonly used for:
All ready-to-use files required
<script src="https://cdn.jsdelivr.net/gh/thaboyaluya/astralcss@master/dist/js/astral%403.1.0.min.js"></script>
Simply make a plugin instance and then create a message using any of the following methods:
OTP.generateOTP()
a password will displayed in the console!
Here are the default options
var defaultOptions = { limit: 4 };
List of available public methods:
OTP.generateOTP(userOptions);